# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: dale <dale@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=gpart
pkgver=0.3
pkgrel=4
pkgdesc="Partition table rescue/guessing tool"
arch=('x86_64')
url="https://github.com/baruch/gpart"
license=('GPL')
depends=('glibc')
source=("https://github.com/baruch/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('ec56d12ec9ffdb9877c12692ea6e51620b1ae44473d3d253b27fc31ed9ebb4dd')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./autogen.sh
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make prefix="${pkgdir}"/usr sbindir="${pkgdir}"/usr/bin install
}
